home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
dos
/
prg
/
pas
/
swag
/
keyboard.swg
/
0082_LiteShow (LED).pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-08-24
|
708b
|
36 lines
{
ER> Anyway, Does anyone knows who to make the num/caps/scroll
ER> leds on the keyboard 'flicker' or just light up? (You could
ER> create pretty cool effects like a 'walking light' on ones
ER> keyboard..:) I checked the SWAGfiles but was not able to
ER> find anything there..
}
Program LiteShow;
Uses Crt;
Var
i : Byte;
Procedure SetLED(LED: Byte); Assembler;
ASM
MOV AL, $ED
OUT $60, AL
MOV CX, $200
@@1:
LOOP @@1
MOV AL, LED
OUT $60, AL
End;
Begin
i := 1;
While not KeyPressed do
Begin
SetLED(i);
i := i SHL 1;
If i = 8 then i := 1;
Delay(200);
End;
While KeyPressed do ReadKey;
End.